<?php
class NoBusinessBase_Controller_Plugin_DojoIFrame extends Zend_Controller_Plugin_Abstract
{
   public function postDispatch(
      Zend_Controller_Request_Abstract $pRequest)
   {
      $dojoIFrame = $pRequest->getParam("dojoIFrame", false) === 'true';
      if(!$dojoIFrame)
         return;

      $pResponse = $this->getResponse();
      $responseBody = $pResponse->getBody();
      $pResponse->setHeader('Content-Type', 'text/html');
      $pResponse->setBody("<html><body><textarea>" . $responseBody . "</textarea></body></html>");
   }

}
